package com.tyqx.hashchaindao.mapper;

import com.tyqx.hashchainbean.module.JZTCodeCirculation;
import com.tyqx.hashchainbean.vo.JZTCodeCirculationAndGS1VO;
import com.tyqx.hashchainbean.vo.JZTCodeCirculationVO;
import com.tyqx.hashchainbean.vo.JZTLogisticsVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface JZTCodeCirculationMapper {


    public Integer addJZTCodeCirculation(JZTCodeCirculation jztCodeCirculation);

    public List<JZTCodeCirculationVO> getJZTCodeCirculationByTraceabilityCode(@Param("traceabilityCodes") List<String> traceabilityCodes,@Param("userName") String userName);

    public List<JZTCodeCirculationAndGS1VO> getJZTCodeCirculationAndGS1ByTraceabilityCode(@Param("traceabilityCodes")List<String> traceabilityCodes);

    public List<JZTCodeCirculationAndGS1VO> grantGetJZTCodeCirculationAndGS1ByTraceabilityCode(@Param("traceabilityCodes")List<String> traceabilityCodes,@Param("userName") String userName);

    public List<JZTCodeCirculationVO> getJZTJZTCodeCirculationByCode(String traceabilityCode);

    public Integer insertBatch(@Param("jztCodeCirculationList")List<JZTCodeCirculation> jztCodeCirculationList);

}
